package com.gu.VO;

/**
 * @ProjectName: apartment-management-center
 * @Package: com.gu.utils
 * @ClassName: LayuiVO
 * @Author: gusongliao
 * @Description: 用于标准化响应数据
 * @createDate 2021/02/24 10:47
 */
public class LayuiVO {

    private Integer code;
    private String msg;
    private Long count;
    private Object data;

    public LayuiVO() {
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public Long getCount() {
        return count;
    }

    public Object getData() {
        return data;
    }

    /**
    * @Description //成功方法
    * @User 谷松辽
    * @Date 2021/2/24 11:03
    * @param count 数据数量
    * @param data 真实数据
    * @return com.gu.VO.LayuiVO
    */
    public static LayuiVO success(Long count, Object data){
        LayuiVO layuiVO = new LayuiVO();
        layuiVO.code = 0;
        layuiVO.msg = "成功";
        layuiVO.count = count;
        layuiVO.data = data;
        return layuiVO;
    }
}
